xl: audit allocation of strings within libxl_device_*
authorIan Campbell <ian.campbell@citrix.com>
Wed, 13 Oct 2010 11:01:30 +0000 (12:01 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 13 Oct 2010 11:01:30 +0000 (12:01 +0100)
commit43e2c25aec8b01430fdd910b935b96a0f2b0692e
tree15463c34b25f49984983975b0d5cb19dfc859523
parentf51aae032a452ffdbbe69aa53b11e350bd2ed072
xl: audit allocation of strings within libxl_device_*

* Remove string literals from init_*_info.
* Free any existing string values before overwriting during device
  option parsing.
* Free libxl_device_console after use.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/xl_cmdimpl.c